<template>
  <div>
    <header>头部</header>
    <main>
      <slot name="main" :arr="arr" :age="18"></slot>
    </main>
    <footer>尾部</footer>
  </div>
</template>

<script>
export default {
  name: 'myTest',
  data () {
    return {
      arr: ['前端', '后端']
    }
  }
}
</script>

<style>

</style>
